#!/usr/bin/env bash

if pgrep xow; then
    killall xow
fi
nohup /usr/bin/xow >/dev/null 2>&1 &
pid=$!
# Give xow a chance to start before sending pairing signal
sleep 3
kill -s SIGUSR1 $pid
